package org.example.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.pojo.User;

import java.util.List;

@Mapper
public interface UserMapper {
    // @Select("select * from user")
    public List<User> findAll();

    @Delete("delete from user where id =#{id}")
    public void deleteById(Integer id);
}
